import type { BasicResp } from '~/api/core/types/types'

interface RegParams {
  username: string
  password: string
  email: string
}

export const reqUserRegister = (params: RegParams) => {
  useHttp<BasicResp<null>>({
    url: '/v1/user',
    method: 'post',
    params: { ...params },
  })
}
